When x is greater than or equal to 50 and less than 40, y =1.2x.
When x is more than 40 and less than 50, y=76-64= 12.
So12 =1.2xx =10.
So: Xiaohua earned 76-0.8*50=36 yuan.