Let \( h \) represent the number of home runs 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 Andre hit} = 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:
\[ 3h + 4 = 10 \]
This equation can be used to find the total number of home runs \( h \) Hassan hit.