A person on an exercise regime decides to lose 500 calories in a day. For every 30 minutes of exercise he loses 80 calories but gains 25 calories per cake that he eats. In the morning he exercises for a certain time and he eats a certain number of cakes. In the afternoon he exercise for double the time he eats thrice the number of cakes. In the evening he exercises for 1.5 times the time he spends in the morning session and eats 4 times the number of cakes he eats in the morning. Had he not eaten any cake he would have exceeded his target by 220 calories. If he actually falls short of his target by 180 calories then what is the number of cakes he has eaten in the evening?