The table below shows the percentage of bacterial isolates from hospital patients that were resistant to penicillin over a five-year period.
| Year | Percentage of resistant isolates |
|---|---|
| 2018 | 12 |
| 2019 | 18 |
| 2020 | 25 |
| 2021 | 34 |
| 2022 | 45 |
With reference to the data, describe how penicillin acts on bacteria and explain why antibiotics are ineffective against viruses. Also discuss the consequences of antibiotic resistance and the steps that can be taken to reduce its impact.