Let cost of 1 pencil be x
Let cost of 1 eraser be y
so, 11x + 3y = 50 -----(i)
8x + 3y = 38 ------(ii)
Subtract (i) and (ii)
11x - 8x = 12
3x = 12
x = 4
Substitute the value of x in eq(i),
11 x 4 + 3 y = 50
44 + 3y = 50
3y = 6
y = 2
So, cost of 1 pencil is Rs. 4 and erase is Rs.2