A man bought 4 cups of coffee and left a $7 tip. A woman bought 8 cups of coffee and only left a $2 tip. If they paid the same amount, how much was each cup of coffee? Write and solve an equation for the situation.