The calculated distance (air line) between Ajka and Budapest is approximately 75 miles respectively 120 kilometers.
By car or train, the actual journey to Budapest is certainly longer, as only the direct route (as the crow flies) between Ajka and Budapest has been calculated here.