This may not be exactly what you're looking for, but give this a try:
$finalprice = $sqm + ${$type . 'price'};
If $type = 'clear', then the line will be evaluated as:
$finalprice = $sqm + ${'clear' . 'price'};
which evaluates as:
$finalprice = $sqm + ${'clearprice'};
which is the same as:
$finalprice = $sqm + $clearprice;
If $type is assigned something else, then that string will be used instead.
Hope this helps!
-Rich