Just Find Total number of bits in tag when direct mapped cache.
7bit tag given in 4way set associative so in direct mapped cache it is of 7-2 =5bits tag.
So main memory is 25 times bigger than cache memory.
So main memory size = 32×256KB =8MB
If you get logic you can do directly without conversion.