Can someone fix this problem with cloth physics?
The problem is probably that you did not set the second cube to "Collision". You can do this by going to the Physics tab and selecting Collision. You can continue by playing with the collision settings and seeing what works for you.