Let us assume 1 pen cost be ₹ x and 1 pencil cost be ₹ y.
According to question,
The Cost of 36 pens and 42 pencils is 460.
36x + 42y = 460 ...................(1)
then the cost of 18 pens and 21 pencils = 18x + 21y.
Now divide the Equation (1) by 2. We will get,
18x + 21y = 230
So the Cost of 18 pens and 21 pencils = 18x + 21y = 230