Three bags of of potatoes and four cases of corn cost $40. Five bags of potatoes and two cases Of corn cost $34. Find the cost of one bag of potatoes and the cost of one case of corn. Show your work