The time constant of shown RC circuit is :
RC2
RC
2 RC
4 RC
τ=ReqC where Req = equivalent resistance across capacitor with short circuiting batteries (if any)
Here, Req=2R P 2R 5R=2R
So, τ=2RC