Prices are double what they were two years ago.

Literal

Prices [topic-は] two-years-ago [possessive-の] double is.

2年前の2倍 means 'twice that of two years ago' — 倍 means 'times/fold.' A clean comparison using の to link the time reference to the multiplier.