The last Alberta provincial election 2023 by the Dual Electoral System.
The top 2 candidates are elected with the third or fourth also elected if they got 5% of the vote. All other candidates transfer their vote to one elected in their riding or let it not get represented. Each riding is represented by 2 to 4 MLAs.
All these legislators only vote when the Assembly is in legislative session every Wednesday afternoon. The 87 sitting MLAs are elected by party lists voted on by the MLAs. Each party will elected sitting members equal to their legislative vote.
The top two candidates in every riding were the UCP and the NDP. No fourth place candidate got 5% of the vote but 2 third place candidates did, both the Alberta Party, in the ridings of Brooks-Medicine hat and LaCombe-Ponoka.

After calculating for the sitting members you drop the decimal then add members to get the number of sitting members. You add 1 to each list in order of the highest decimal remainder. For the party lists the party candidates are ordered from highest percentage of the vote to lowest. So for the UCP it would be the 47 candidates with the highest percentage of the vote who get to sit in the Legislative Assembly and the top 40 for the NDP.