If the alignment should be the same, then I think @gezepi’s approach is the most straightforward, but in this case it should be (right, center). If you will write block level equations, then it should be (right, center + horizon).
@bluss, please try using the correct language identifier for code block, in this case it’s typ.