Exhibit 23.2
Consent of Independent Registered Public Accounting Firm
Farmers and Merchants Bancshares, Inc.
Hampstead, Maryland
We consent to the incorporation by reference in this Registration Statement on Form S-8 of Farmers and Merchants Bancshares, Inc. of our report dated March 10, 2023, relating to the consolidated financial statements of Farmers and Merchants Bancshares, Inc., appearing in the Annual Report on Form 10-K of Farmers and Merchants Bancshares, Inc. for the year ended December 31, 2022.
/s/ Yount, Hyde & Barbour, P.C.
Richmond, Virginia
August 22, 2023