Let there be x tickets of first class and y tickets of second class. Then the problem is to

The shaded region in the graph represents the feasible region which is proved.

Le us evaluate the value of z at each corner point

40 tickets of first class and 160 tickets of second class should be sold to earn maximum profit of Rs. 64,000.