Mielőtt itt dolgozott, Tom rendőrtiszt volt harminc éven át.

English Translation

Before working here, Tom was a police officer for thirteen years.

Should be “for 30 years”