\(B=\dfrac{2\cdot2^{12}\cdot3^6+2^2\cdot2^9\cdot3^9}{2^7\cdot2^7\cdot3^7+2^7\cdot2^3\cdot5\cdot3^8}\)
\(=\dfrac{2^{13}\cdot3^6+2^{11}\cdot3^9}{2^{14}\cdot3^7+2^{10}\cdot5\cdot3^8}\)
\(=\dfrac{2^{11}\cdot3^6\left(2^2+3^3\right)}{2^{10}\cdot3^7\left(2^4+5\cdot3\right)}=\dfrac{2}{3}\cdot\dfrac{31}{31}=\dfrac{2}{3}\)