an apple, an orange and a pear cost 40. a pear cost 5 more than an apple and an orange cost 3 less tahn a pear. how much is the cost of each fruit