Compose two transformations: the result applies t1 first, then t2, i.e.
apply(compose_transforms(t1, t2), p) == apply(t2, apply(t1, p)).
With the convention of apply (x' = m11 x + m12 y + m31,
y' = m21 x + m22 y + m32) this is the matrix product t2 * t1.