Form the pair of linear equations in the following problems, and find their solutions graphically.
(i) 10 students of Class X took part in a Mathematics quiz. If the number of girls is 4 more than the number of boys, find the number of boys and girls who took part in the quiz.
(ii) 5 pencils and 7 pens together cost Rs 50, whereas 7 pencils and 5 pens together cost Rs 46. Find the cost of one pencil and that of one pen.