Let the number of quarters you have be 5x Then your friend has x quarters.
Then we have the equation
5x = x + 12
4x = 12
x = 3
Your friend has 3 quarters (answer)
9.5m questions
12.2m answers