How to get the solution of this simple optimization problem?

I konw we may use Moore-Penrose inverse like,

but what are and now?

if and then there is no inverse of . I am quite confused how to formulate these and to do the matrix multiplication.

Thanks a lot