Treat the blocks separately. Make a very detailed drawing with ALL the forces involved. What is the maximum Force the top block can receive from static friction from the lower block (no slipping)? What acceleration does that correspond to?