Let \( h \) represent the number of home runs that Hassan hit. According to the problem, Andre hit 4 more home runs than twice the number of home runs Hassan hit. This can be expressed as:
\[ \text{Home runs hit by Andre} = 2h + 4 \]
Together, their total home runs add up to 10, so we can write the equation:
\[ h + (2h + 4) = 10 \]
To simplify, combine the terms:
\[ 3h + 4 = 10 \]
This equation can be used to find the total number of home runs that Hassan hit.