Ralph and Jody go to the store to buy potato chips and candy bars for an upcoming field trip. Ralph buys three bags of potato chips and four candy bars.

a) Determine the total cost of the potato chips and candy bars.
b) If the cost of a bag of potato chips is $2.50 and a candy bar is $1.20, calculate the total amount spent by Ralph.