Solar Federal Tax Credit for Shared Home.

My family and my parents live in the same home.  The home belongs to my parents, it is in their names.  If my parents and I go in 50/50 on a solar system, can both of us each get a 50% solar tax credit?  For example, if the system costs $30,000, the total tax credit would be $7,800, so each of us would get $3,900?  Is that how it would work?  TIA!