You and your friend each purchase an equal number n of magazines. Your magazines cost $1.50 each and your friend’s magazines cost $2 each. The total cost for you and your friend is $10.50.
Write and solve an equation to find the number of magazines you purchased.