John and A.J. decided to get lunch from the hot dog cart. John bought 2 hot dogs and a soda, and his total was $4.00. A.J was taking lunch back to another coworker, so he bought 5 hot dogs and 2 sodas. A.J.'s total was $9.50.
What was the cost of each hot dog? each soda?