5 pencils and 7 pens together cost Rs. 50, whereas 7 pencils and 5 pens together cost Rs. 46. Find the costs of one pencil and one pen.