Step 1: Understanding the Concept:
The work done in bringing a charge from infinity against the field of another charge equals the change in potential energy. This is the potential energy of the pair of charges.
Step 2: Key Formula:
\[ W = \frac{1}{4\pi\varepsilon_0}\,\frac{q_1 q_2}{r} \]
Step 3: Find the separation r:
The charges are at (1 cm, 1 cm) and (-3 cm, 4 cm). The differences are 4 cm in x and 3 cm in y.
\[ r = \sqrt{4^2 + 3^2}\ \text{cm} = 5\ \text{cm} = 0.05\ \text{m} \]
Step 4: Substitute:
\[ W = \frac{9 \times 10^{9} \times 5 \times 10^{-6} \times 6 \times 10^{-6}}{0.05} \]
\[ W = \frac{0.27}{0.05} = 5.4\ \text{J} \]
Step 5: Why the other options are wrong.
Both charges are positive, so the work is positive. This rules out -0.54 J. The value 0.54 J comes from using r = 0.5 m, and 10.8 J comes from using r = 0.025 m. Neither is the real distance.
Final Answer:
The work done is 5.4 J, option (B).
\[ \boxed{5.4\ \text{J}} \]