According to the simultaneous equations of two equal relations, it takes 42 yuan for the first time and 30 yuan for the second time, so it can be solved.
The price of a pen and a notebook bought by Xiaohong is X yuan and Y yuan respectively.
5x+ 10y=42
10x+5y=30
The solution is x= 1.2.
y=3.6