If I understand your setup correctly, the correct solution should be something similar to what @sebasth answered above. Specifically, the formulas should be:
Rac = Rbc Rac
tac = tbc + Rbctab
Derivation:
My assumption is that you have the following formula to go from frame a to frame b:
xb = Rabxa + tab
Similarly, for frame b to frame c (same formula with subscripts appropriately replaced):
xc = Rbcxb + tbc
We want to get a formula for Rac and tac such that the same relationship holds true for transforming from frame a to frame c:
xc = Racxa + tac
If you plug in Rabxa + tab from the first equation for xb in the second equation, you get
xc = Rbc(Rabxa + tab) + tbc
xc = RbcRabxa + Rbctab + tbc
Pattern matching the above with the desired final formula (xc = Racxa + tac), we get:
xc = (RbcRab)xa + (Rbctab + tbc)
Rac = Rbc Rac
tac = tbc + Rbctab