**Disclaimer** Hi there! I assumed the [ 5g ] to be [ 5q ] because it might be errors in typing or images. The following answer will be according to this understanding. Please let me know if it is incorrect and I will modify my answer.
Answer:

Explanation:
Given expression

Given information

Substitute values into the given expression
![[(-3)-(-1)][(-3)^2-3(-3)(-1)+5(-1)]](https://img.qammunity.org/2023/formulas/mathematics/college/6gzpn1hp2u6qszxmu2zudwj33iiavns65y.png)
Simplify by multiplication
![[-3+1][9-3(3)-5]](https://img.qammunity.org/2023/formulas/mathematics/college/1inn2z0ypps3lwxanbza9kn1i2lqjqkqo2.png)
![[-3+1][9-9-5]](https://img.qammunity.org/2023/formulas/mathematics/college/j6hyjz3ljvu5mcht6swkhdg3z91ev8p96j.png)
Simplify values in the bracket
![[-2][0-5]](https://img.qammunity.org/2023/formulas/mathematics/college/k98g4rbofz85cmfa7ej74tvyofl9k6a1dc.png)
![[-2][-5]](https://img.qammunity.org/2023/formulas/mathematics/college/cnubxc3r3ur6fp8chzaijbxilyc5ushtss.png)
Simplify by multiplication

Hope this helps!! :)
Please let me know if you have any questions