Let's buy an X notebook for 3 yuan and a Y pen for 5 yuan.
3x+5y=38(x, y is a positive integer)
The solution is x= 1 and y=7.
x=6,y=4
x= 1 1,y= 1
So there are three purchase schemes.