Write a Python function to calculate the sum of a list of numbers after transforming them using a given function.
numbers = [1, 2, 3]
transform_function = lambda x: x**2
def transform_sum(numbers, transform_function):
 transformed_numbers = [transform_function(x) for x in numbers]
 return sum(transformed_numbers)