a girl bought a dog for $5 sold it for $10 bought it back for $20 and sold it for $25 how much $ did she gain or lose