solve 40 and 63