I will take pretty much the same approach that 9-BBN does except I will do it a little bit differently. I have never heard of setting the reactants to zero and I'm not very good at making matrices, so I'll just jump right into the systems of equations.
First of all, define your coefficients $a,b,c,d,e$ for each of the chemicals involved, being the reactants that you start with and the products that you get from the reaction.
$$\ce{a FeS2 + b O2 + c H2O -> d Fe(OH)3 + e H2SO4}$$
Now we keep a tally of the number of each atom in molecule. If I put a zero, it means that there are none in that compound and this is for clarity; an equality sign replaces the reaction arrow separating products and reactants.
Iron (Fe): $\displaystyle 1a + 0b + 0c = 1d + 0e \Longrightarrow a = d$
Sulfur (S): $\displaystyle 2a + 0b + 0c = 0d + 1e \Longrightarrow 2a = e$
Oxygen (O): $\displaystyle 0a + 2b + 1c = 3d + 4e \Longrightarrow 2b + c = 3d + 4e$
Hydrogen (H): $\displaystyle 0a + 0b + 2c = 3d + 2e \Longrightarrow 2c = 3d + 2e$
Now then, we have four equations and 5 variables $a,b,c,d,e$ … so it shouldn't be solvable, except that we only want one solution which is the lowest integer coefficients for each molecule. So we have to make one initial guess for any of the variables. We choose the one that is the simplest and that will be $a$. We set $a = 1$ for initial guess. Note that $a < 0$ & $a = 0$ are forbidden.
In iron (Fe), $a = d$, as $a = 1$, then $1 = d$
In sulfur (S), $2a = e$, as $a = 1$, then $2 = e$
What we know: $a = 1, b =\ ?, c =\ ?, d = 1, e = 2$
With what we know, we can only solve for $c$ in the hydrogen equation next.
$c = [(3d + 2e) / 2]$, as $d = 1, e = 2$, then: $c = 7 / 2$
Solving the last equation for b:
$b = [3d + 4e -c] / 2$, given known variables, then: $b = 15 / 4$
Solutions: $a = 1, b = (15 / 4), c = (7 / 2), d = 1, e = 2$
This will balance the equation according to conservation of mass. However, it makes more sense if you multiply $a$ through $e$ by $4$ so as to get the lowest whole number solutions. This is like scaling a recipe. We are synthesizing the same thing, though.
Therefore, $a = 4, b = 15, c = 14, d = 4, e = 8$
Balanced Chemical Equation:
$$\ce{4 FeS2 + 15 O2 + 14 H2O -> 4 Fe(OH)3 + 8 H2SO4}$$
Now that your equation is balanced I will show you a little something that I've derived. So the formula for the commplete combustion of every hydrocarbon alkane ($\ce{C_nH_{2n+2}}$) such as methane, ethane, propane, butane, pentane, etc … is this:
$$\ce{C_nH_{2n+2} + $(3n + 1) / 2$ O2 -> n CO2 + (n + 1) H2O}$$
So if we are completely combusting (full airflow of oxygen, no major flickering of the flame producing a mixture of $\ce{CO}$ and $\ce{CO2}$) propane which has the molecular formula $ce{C3H8}$, where $n = 3$ then it's combustion is the following:
$$\ce{C3H8 (g) + 5 O2 (g) -> 3 CO2 (g) + 4 H2O (g)}$$
I know the general complete combustion equation is true for every alkane because all alkanes have the formula $\ce{C_nH_{2n+2}}$, $\ce{O2}$ is always involved in combustion, and $\ce{CO2}$ & $\ce{H2O}$ are always the products of the complete combustion of alkanes. I think this is really cool given that most popular general chemistry equations are combustion equations!
Additional information: I have a lot of ideas running through my head now so once you've determined the balanced chemical equation, you may be able to calculate the spontaneity of the reaction from the change in Gibbs Free Energy of reaction which is useful for knowing if the reaction is a waste of energy, that is that it consumes more energy than produces or not!
You can determine the percent yield after experimentation, how useful your reaction is from the stoichiometric amount of expected product produced. But even with ideally $100~\%$ yield, are all the elements that you find in your desired product going on to form your product or are they being wasted producing something else?
The 2nd Principle of Green Chemistry: Atom Economy, states that
Synthetic methods should be designed to maximize incorporation of all materials used in the process into the final product. (The American Chemical Society)
So what's the point of your reaction? To make $\ce{Fe(OH)3}$? What percent of the atoms $\ce{Fe, O}$, and $\ce{H}$ are being incorporated as $\ce{Fe(OH)3}$ and how much is going off to form sulfuric acid instead? We can calculate that as the percent atom economy.
$$\%\ \text{Atom Economy} = \frac{\text{mass of atoms in desired product}}{\text{mass of atoms in all reactants}} \times 100$$
where units are in grams per mole, but they are eliminated in the ratio.
$$\begin{align}\%\ \text{Atom Economy} &= \frac{4 \times 106.866}{4 \times 119.965 + 15 \times 31.998 + 14 \times 18.015} \times 100\\
&= \frac{427.464}{1212.04} \times 100\\
&= 35.27~\%\end{align}$$
So if there were multiple ways to make $\ce{Fe(OH)3}$ $\%\ \text{Atom economy}$ may be a useful factor to consider when conducting a synthesis. I think this is more important, though, in choosing a synthetic reaction where toxic byproducts are involved and you want to minimize the toxic byproducts produced for the health of the earth and of the customer or patient and also to reduce on having to spend money to deactivate and/or filter out toxic byproducts in an industrial synthesis. Therefore, you want the synthesis with the highest $\%\ \text{Atom Economy}$.
A link on Atom Economy: https://www.acs.org/content/acs/en/greenchemistry/what-is-green-chemistry/principles/gc-principle-of-the-month-2.html