Let's define the number of home runs Hassan hit as \( h \). According to the problem, Andre hit 4 more home runs than twice the number of home runs Hassan hit. This can be expressed as \( 2h + 4 \).
Together, they hit a total of 10 home runs. Therefore, we can write the equation:
\[ h + (2h + 4) = 10 \]
This equation can be simplified to find the total number of home runs Hassan hit.