If the flight goes exactly as planned we will have burned only the planned trip fuel. So the landing mass will be the take-off mass minus the trip fuel. But we must not plan to land at a mass greater than the MLM, so working backwards if we take the MLM and add back the trip fuel, we will have the maximum TOM which will avoid exceeding the MLM.