Buenos is masculine plural, buenas is feminine plural. In general - there are some exceptions - words ending with -o are masculine and words ending with -a are feminine.