The number 1621 was subtracted from 6244 in base x. If the result was 4323,…